package com.ytjj.qmyx.supplychain.mapper;

import com.ytjj.qmyx.supplychain.mapper.entity.OrderSendKafkaRecord;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OrderSendKafkaRecordMapper extends Mapper<OrderSendKafkaRecord> {

    /**
     * 批量修改
     * @param childOrderNo
     * @param completeStatus
     * @param closeStatus
     */
    void updateBatch(@Param("childOrderNo") List<String> childOrderNo,
                     @Param("completeStatus") Integer completeStatus,
                     @Param("closeStatus") Integer closeStatus);

    /**
     * 批量插入
     * @param childOrderNo
     * @param completeStatus
     * @param closeStatus
     */
    void insertBatch(@Param("childOrderNo") List<String> childOrderNo,
                     @Param("completeStatus") Integer completeStatus,
                     @Param("closeStatus") Integer closeStatus);
}
